﻿<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'billet-incident-form',
	'enableAjaxValidation'=>false,'clientOptions'=>array('ValidateOnSubmit'=>true),
)); ?>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'Problème logiciel'); ?>
		<?php echo $form->dropDownList($model,'ID_PROBLEME_LOGICIEL', CHtml::listData(ProblemeLogiciel::model()->findAll(), 'ID_PROBLEME_LOGICIEL', 'LIBELLE_PROBLEME_LOGICIEL')); ?>
		<?php echo $form->error($model,'ID_PROBLEME_LOGICIEL'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Poste concerné'); ?>
		<?php echo $form->textField($model,'ID_POSTE'); ?>
		<?php echo $form->error($model,'ID_POSTE'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ID_EMETTEUR'); ?>
		<?php echo $form->textField($model,'ID_EMETTEUR'); ?>
		<?php echo $form->error($model,'ID_EMETTEUR'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Problème matériel'); ?>
		<?php echo $form->dropDownList($model,'ID_PROBLEME_MATERIEL', CHtml::listData(ProblemeMateriel::model()->findAll(), 'ID_PROBLEME_MATERIEL', 'LIBELLE_PROBLEME_MATERIEL')); ?>
		<?php echo $form->error($model,'ID_PROBLEME_MATERIEL'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Description du problème'); ?>
		<?php echo $form->textArea($model,'DESCRIPTION_PROBLEME',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'DESCRIPTION_PROBLEME'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Importance'); ?>
		<div id="radio">
		
		<?php echo $form->radioButtonList($model, 'URGENCE',
                    array( 'Elevée',
                           'Normale',
                           'Basse' ) ); ?>
		
		</div>
		<?php echo $form->error($model,'URGENCE'); ?>
	</div>

	
	<div class="row">
		<?php echo $form->labelEx($model,'DATE_OUVERTURE'); ?>
		<?php echo Yii::app()->dateFormatter->formatDateTime(time(), 'short'); ?>
		<?php echo $form->error($model,'DATE_OUVERTURE'); ?>
	</div>
	<!--
	<div>
		<?php echo $form->labelEx($model,'DATE_FERMETURE'); ?>
		<?php echo $form->textField($model,'DATE_FERMETURE'); ?>
		<?php echo $form->error($model,'DATE_FERMETURE'); ?>
	</div>
-->
	<div class="row">
		<?php echo $form->labelEx($model,'DATE_FIN_PREVUE'); ?>
		<?php echo $form->textField($model,'DATE_FIN_PREVUE'); ?>
		<?php echo $form->error($model,'DATE_FIN_PREVUE'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Pièce jointe'); ?>
		<?php echo $form->fileField($model,'Parcourir',array('rows')); ?>
		<?php echo $form->error($model,'PIECE_JOINTE'); ?>
	</div>

	
	<div class="row">
		<?php echo $form->labelEx($model,'RESOLU'); ?>
		<div id="radio">
		
		<?php echo $form->radioButtonList($model, 'RESOLU',
                    array( 'Oui',
                           'Non') ); ?>
		
		</div>
		<?php echo $form->error($model,'RESOLU'); ?>
	</div>
	
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Créer' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->